﻿@model SitemapModel
@using Giant.Web.Models.Common;
@{
    Layout = "~/Views/Shared/_ColumnsOne.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.Sitemap").Text);
    //page class
    Html.AppendPageCssClassParts("html-sitemap-page");
}
<div class="page sitemap-page">
    <div class="page-title">
        <h1>@T("Sitemap")</h1>
    </div>
    <div class="page-body">
        <div class="description">
            @T("Sitemap.Description")
        </div>
        @Html.Widget("sitemap_before")
        <div class="entity">
            <div class="entity-title">
                <h2>@T("Sitemap.General")</h2>
            </div>
            <div class="entity-body">
                <ul>
                    <li><a href="@Url.RouteUrl("HomePage")">@T("HomePage")</a></li>
                    @if (Model.NewsEnabled)
                    {
                        <li><a href="@Url.RouteUrl("NewsArchive")">@T("News")</a></li>
                    }
                   
                    <li><a href="@Url.RouteUrl("ContactUs")">@T("ContactUs")</a></li>
                    <li><a href="@Url.RouteUrl("UserInfo")">@T("Account.MyAccount")</a></li>
                    @if (Model.Topics.Count > 0)
                    {
                        foreach (var item in Model.Topics)
                        {
                            <li><a href="@Url.RouteUrl("Topic", new {Sename = Html.GetTopicSeName(item.SystemName)})">@item.Title</a></li>
                        }
                    }
                </ul>
            </div>
        </div>
        
        @Html.Widget("sitemap_after")
    </div>
</div>
